package day03;

public class Text {
    public static void main(String[] args) {
        int a = 5, b = 10;
        int max = a > b ? a : b;
        System.out.println("max=" + max);
        if (a > b) {
            System.out.println("max=" + a);
        } else {
            System.out.println("max=" + b);
        }

        int year = 2023;
        if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
            System.out.println(year + "年是闰年");
        } else {
            System.out.println(year + "年是平年");
        }
        int score = 85;
        if (score<0||score>100) {
            System.out.println("成绩不合法");
        } else {
            if (score >= 90 ) {
                System.out.println("A");
            } else if (score >= 80) {
                System.out.println("B");
            } else if (score >= 60) {
                System.out.println("C");
            } else  {
                System.out.println("D");
            }
            }
        }
    }


